package com.wyz.note.mq.rabbit.provider.constant;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.UUID;

/**
 * @Description:
 * @Author: wei yz
 * @Date: 2022/6/12 13:59
 */
public interface BaseConstant {
    String createTime = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
    String messageId = String.valueOf(UUID.randomUUID());

    /**
     * 直连型队列名称
     */
    String QueueName = "directQueue";
    /**
     * 主题队列名称
     * 注：student 可作为
     */
    String student = "topic.student";
    String teacher = "topic.teacher";
    /**
     * 扇形队列名称
     */
    String FanoutA = "fanout.A";
    String FanoutB = "fanout.B";
    String FanoutC = "fanout.C";



    /**
     * 直连型交换机名称
     */
    String DirectExchange = "directExchange";
    /**
     * 主题交换机名称
     */
    String TopicExchange = "topicExchange";

    /**
     * 扇形交换机名称
     */
    String FanoutExchange = "fanoutExchange";



    /**
     * (直连型)匹配键 => 用于队列和交换机绑定
     */
    String DirectRoutingKey = "DirectRoutingKey";


}
